package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.entity.ApiOrderCommentPost;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * T_winds
 * Date:  16.8.22
 * Description:
 */
public class ApiPostOrderComment extends ApiBaseParamAbstract<Object> {

    private ApiOrderCommentPost opinion;

    public ApiPostOrderComment(ApiOrderCommentPost opinion, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
//        mParams.put("opinion",opinion);
        this.opinion = opinion;
    }

    @Override
    public Call<RootResult<Object>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).postOrderComment(opinion);
    }
}
